﻿using System;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
using Volo.Abp.Domain.Repositories;

namespace YunxSoft.Abp.LanguageManagement;

public interface ILanguageRepository : IBasicRepository<Language, Guid>
{
    Task<List<Language>> GetListAsync(bool isEnabled);
    
    Task<long> GetCountAsync(string? filter = null, CancellationToken cancellationToken = default);

    Task<List<Language>> GetListAsync(string sorting = null, int maxResultCount = Int32.MaxValue, int skipCount = 0, string? filter = null, CancellationToken cancellationToken = default);
}